﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Dialog.Master" AutoEventWireup="true"
    CodeBehind="ColorEdit.aspx.cs" Inherits="NetDon.OA.Portal.HtmlTool.ColorEdit" %>

<%@ Register Src="../Controls/RequiredMark.ascx" TagName="RequiredMark" TagPrefix="uc1" %>
<%@ Register TagPrefix="ajaxToolkit" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <NetDon:FormPanel ID="panelCustomInfo" runat="server" CaptionAlign="NotSet" RepeatColumns="1">
        <Items>
            <NetDon:FormItem HeaderText="颜色中文">
                <ContentTemplate>
                    <asp:TextBox ID="txtColor" runat="server" Text='<%#Bind("Color") %>'></asp:TextBox>
                    <uc1:RequiredMark ID="RequiredMark5" runat="server" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtColor"
                        Display="None" ErrorMessage="请输入颜色中文" SetFocusOnError="True"></asp:RequiredFieldValidator>
                </ContentTemplate>
            </NetDon:FormItem>
            <NetDon:FormItem HeaderText="描述颜色英文" ColumnSpan="2">
                <ContentTemplate>
                    <asp:TextBox ID="txtColortitle" runat="server" Text='<%#Bind("Colortitle") %>' Width="600px">
                    </asp:TextBox>
                </ContentTemplate>
            </NetDon:FormItem>
            <NetDon:FormItem HeaderText="默认站点EBAY颜色" ColumnSpan="2">
                <ContentTemplate>
                    <asp:DropDownList ID="ddlebayColor" DataSourceID="ObjectDataSourceTemplate" AppendDataBoundItems="True"
                        runat="server" DataTextField="Color" DataValueField="Id">
                    </asp:DropDownList>
                    <asp:ObjectDataSource ID="ObjectDataSourceTemplate" runat="server" OldValuesParameterFormatString="original_{0}"
                        SelectMethod="RetrieveeBayColors" TypeName="NetDon.eBoss.Portal.HtmlTool.HtmlToolDataSource">
                    </asp:ObjectDataSource>
                </ContentTemplate>
            </NetDon:FormItem>
        </Items>
    </NetDon:FormPanel>
    <div style="padding-top: 10px">
        <center>
            <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click"></asp:Button>
            <asp:Button ID="btnReturn" runat="server" Text="退出" CausesValidation="false"></asp:Button>
            <NetDon:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="true"
                ShowSummary="false" />
        </center>
    </div>
</asp:Content>
